﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ThuVien;

public class PageRequireLogin : BasePage
{
    override protected void OnLoad(EventArgs e)
    {

        // check Ip cho phép vào web không
        if (Session["CheckIPAllow"] != null && Session["CheckIPAllow"].ToString() == "0" && Session["IP_Wan_Client"] != null && FunctionsUtils.CheckIPAllow(Session["IP_Wan_Client"].ToString()) == false)
        {
            Response.Redirect("../Error.aspx?ip=" + Session["IP_Wan_Client"].ToString());
        }
       



        Session["url_click"] = Request.FilePath;
        if (this.UserInfo.UserISN == 0)
        {
            Response.Redirect("../Default.aspx");
        }
        else
        {
            
//            Response.Redirect(Request.FilePath);
        }
        
        base.OnLoad(e);
    }
}